//获取已选的内容的数组
export function getDuplicateItemName(temp, list) {
    var templist = []
    var duplicate = []
    if (temp && list && list.length > 0) {
        if (typeof temp === "string") {
            templist = temp.split(',')
        } else if (typeof data === "object") {
            //是数组
            if (Array.isArray(data)) {
                templist = temp
            }
        }
        templist.forEach(element => {
            list.forEach(element2 => {
                if (element == element2.ID) {
                    duplicate.push(element2.Name)
                }
            });
        });

    }
    return duplicate
}